UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The system and user default umask must be 077.


Overview

Finding ID Version Rule ID IA Controls Severity
V-808 GEN002560 SV-28641r1_rule ECCD-1 ECCD-2 Medium
Description
The umask controls the default access mode assigned to newly created files. An umask of 077 limits new files to mode 700 or less permissive. Although umask can be represented as a 4-digit number, the first digit representing special access modes is typically ignored or required to be 0. This requirement applies to the globally configured system defaults and the user defaults for each account on the system.
STIG Date
Solaris 9 SPARC Security Technical Implementation Guide 2013-01-10

Details

Check Text ( C-28907r1_chk )
Check global configuration:
# find /etc -type f | xargs grep -i umask

Check local initialization files:
# cut -d: -f1 /etc/passwd | xargs -n1 -iUSER sh -c "grep umask ~USER/.*"

If the system and user default umask is not 077, this a finding.

Note: If the default umask is 000 or allows for the creation of world writable files this becomes a CAT I finding..
Fix Text (F-25929r1_fix)
Edit the /etc/default/login file for Solaris. Set the variable UMASK=077
Edit local and global initialization files containing "umask" and change them to use 077 instead of the correct value.